package com.ctshk.rpc.workflow.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 审批
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_sys_approval")
@ApiModel(description="审批")
public class SysApproval extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "审批编号")
    private String approvalNumber;

    @ApiModelProperty(value = "所属配置")
    private Long settingId;

    @ApiModelProperty(value = "发起者ID")
    private Long sponsorId;

    @ApiModelProperty(value = "发起者名称")
    private String sponsorName;

    @ApiModelProperty(value = "发起人部门ID")
    private Long departmentId;

    @ApiModelProperty(value = "发起人部门名称")
    private String departmentName;

    @ApiModelProperty(value = "当前步骤")
    private Long currentStepId;

    @ApiModelProperty(value = "上一步骤")
    private Long lastStepId;

    @ApiModelProperty(value = "下一步骤")
    private Long nextStepId;

    @ApiModelProperty(value = "审批状态(0 已撤回 1 待审批 2 审批中 3 审批不通过 4 审批通过)")
    private Integer status;

    @ApiModelProperty(value = "关联业务类型")
    private Long businessType;

    @ApiModelProperty(value = "关联业务ID")
    private Long businessId;

    @ApiModelProperty(value = "业务所需审批价格")
    private BigDecimal amount;

    @ApiModelProperty(value = "业务所需自定义额外json参数")
    private String extendParams;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;


}
